/*******************************************************************************
*  Project      : Minigate Golfin                                 
*  Program ID   : pop_club_create.js                                 
*  Description  : 동호회 개설 확인                                       
*
********************************************************************************
*  Program History                                                            
*  Date        Author    Description                                          
*  ----------  --------  -------------------------------------------------------- 
*  2012-04-19  김효순    Created.  
*  2012-04-19  김효순    Complete.  
*******************************************************************************/

jQuery(function($){
	function clsControl()
	{
		this.openerControl = null;
		
		this._init();
	}
	
	clsControl.prototype = {
		_init: function(){
			if(opener){
				if(opener.document.objControl){
					this.openerControl = opener.document.objControl;
				}
			}
			
			this._bind();
			
			document.objUtil.setWindowSize()
		}
		, _bind: function(){
			var thisClass = this;
			
			$("div.pw_area02 a").click(function(event){
				event.preventDefault();
				var n = $("div.pw_area02 a").index($(this));
				
				if(n == 0) thisClass.openerControl.confirm();
				self.close();
			});
			
			// 닫기버튼
			$("p.pop_close img").css("cursor", "pointer").click(function(event){
				event.preventDefault();
				
				self.close();
			});
		}
	}
	
	document.objControl = new clsControl();
});